import gameOver5 from "../gameover/gameOver5"
import player_Control from "../rabbit/player_Control"
import gameScene5 from "../Game/gameScene5"
export default class remove_bullets extends Laya.Script {
    
    constructor() { super(); }
    
    onEnable(): void {
    }

    onTriggerEnter(other:Laya.ColliderBase,self:any){
        if(other.label == "ground"||other.label == "trap"){
            this.owner.removeSelf()
        }
        if(other.label == "player1" || other.label == "player2"){
            player_Control._intance.enabled = false
            gameOver5._instance.gameover_panel.visible = true
            gameScene5._intance.num = 0
        }
    }

    onDisable(): void {
    }
}